import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnels;

import java.math.BigDecimal;

/**
 * @author zhangdi
 * @version 1.0
 * @date 2021.12.3 15:31
 */
public class BloomFilterTest {
    public static void main(String[] args) {
//        BloomFilter<Integer> filter = BloomFilter.create(Funnels.integerFunnel(), 10000, 0.01);

        System.out.println(System.getProperty("user.dir"));
        System.out.println(String.format("%05d", 1));

        BigDecimal money = new BigDecimal(0);
        BigDecimal m1 = new BigDecimal(1);
        BigDecimal m2 = new BigDecimal(1);

        System.out.println(money.doubleValue());

        money.add(m1);
        System.out.println(money.doubleValue());

        System.out.println(money.add(m2).doubleValue());
    }

}
